/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.util.Vector;

/**
 * @author Zhanet
 */
public class Questions  {
    
     public static final int  QUESTIONS_COUNT = 10;
     private int currentQuestion = 0;
     private static Questions instance = null;
     
     private Vector questions = new Vector();
       
     
     private Questions(){
        String[] ans = {"a","b","c"};
        Answers a = new Answers("vopros", ans, 0);
        questions.addElement(a);
     }


     public static Questions getInstance(){
            if(instance == null) instance = new Questions();
            return instance;
      }


     public Answers getNextQuestion(){
        currentQuestion++;
        if(currentQuestion <= QUESTIONS_COUNT){
            return (Answers) questions.elementAt(currentQuestion-1);
        }
        return null;
    }


}